package com.temp.test;

import cn.hutool.core.date.DateUtil;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

public class CheckTime {
    public static void main(String []args){
        try{
            SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy hh:mm:ss a", Locale.ENGLISH);
            Date createTime = formatter.parse("12/26/2024 4:07:03 AM");
            System.out.println(DateUtil.formatDateTime(createTime));
        }catch (Exception ex){
            ex.printStackTrace();
        }

    }
}
